﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using com.paypal.soap.api;

public partial class PayPal_Error : System.Web.UI.UserControl
{
    ASPDotNetSamples.BasePage basepage = new ASPDotNetSamples.BasePage();  
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected override void OnPreRender(EventArgs e)
    {
        base.OnPreRender(e);
        this.DataBind();
    }

    public string getStyle(com.paypal.soap.api.AbstractResponseType response)
    {
        if (response.Ack == AckCodeType.Failure || response.Ack == AckCodeType.SuccessWithWarning)
        {
            return "display:block;";
        }
        else
        {
            return "display:none;";
        }
    }
    protected AbstractResponseType PayPalResponse
    {
        get
        {
            return basepage.PayPalResponse;
        }
    }
}
